

/// 我的页面状态类 - Profile State Class
/// 管理我的页面的所有状态数据
/// This class contains only state variables, no methods or business logic
/// 此类仅包含状态变量，不包含任何方法或业务逻辑
class ProfileState {
  /// 用户头像路径 - User avatar path
  /// Path to the user's profile picture
  String avatarPath = '';

  /// 用户昵称 - User nickname
  /// Display name for the user
  String nickname = '游客用户';

  /// 用户邮箱 - User email
  /// User's email address (for future login functionality)
  String email = '';

  /// 是否已登录 - Is logged in
  /// Login status (for future login functionality)
  bool isLoggedIn = false;

  /// 应用版本 - App version
  /// Current version of the application
  String appVersion = '1.0.0';

  /// 语言设置 - Language setting
  /// Current language preference
  String language = 'zh-CN';

  /// 是否开启深色模式 - Dark mode enabled
  /// Dark theme preference (commented out as per requirements)
  // bool isDarkMode = false;

  /// 默认文档格式 - Default document format
  /// Default format for new documents (md, txt, doc)
  String defaultFormat = 'md';

  /// 是否自动保存 - Auto save enabled
  /// Automatic saving preference
  bool autoSave = true;

  /// 存储路径 - Storage path
  /// Current storage location for files
  String storagePath = '';

  /// 是否自动备份 - Auto backup enabled
  /// Automatic backup preference
  bool autoBackup = true;

  /// 是否正在加载 - Is loading
  /// Loading state indicator
  bool isLoading = false;

  /// 错误信息 - Error message
  /// Current error message if any
  String? errorMessage;

  /// 自定义存储路径 - Custom storage path
  /// User-defined custom storage location
  String customStoragePath = '';
}